// A program demonstrating the use of array of objects and indexing

import java.util.Scanner;

class index {

  public static void main (String[] args) 
  {
    Scanner scan = new Scanner(System.in);
    String[] digits = {"zero","one","two","three","four","five","six","seven","eight","nine"};
    System.out.print ("Enter a number: ");
    int num = scan.nextInt();
    int n = num;
    int i = 0;
    int d = 1;
    while (n>0) 
    {
       n = n /10; 
       d = d*10;
       i++;
    }
   
    d = d/10;
    while (i>0) 
    {
       System.out.print(digits[num/d] + " ");
       num = num % d;
       d = d / 10;
       i--;
    }

  }

}
